	public String getC(String fileName) {
		int count = 0;
		String s;
		try {
			BufferedReader in = new BufferedReader(new FileReader(fileName));
			// FileReader in = new FileReader(fileName);
			while ((s = in.readLine()) != null)
				count += s.length();
			in.close();
		} catch (FileNotFoundException e1) {
			System.out.println("找不到文件!!!");
			e1.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return fileName + ", 字符数为：" + count;
	}

public String getW(String fileName) {
		int count = 0;
		String s;
		try {
			BufferedReader in = new BufferedReader(new FileReader(fileName));
			while ((s = in.readLine()) != null) {
				if (!s.isEmpty()) {
					String ss[] = s.trim().split(" |,|	");
					count += ss.length;
				}
			}
			in.close();
		} catch (FileNotFoundException e1) {
			System.out.println("找不到文件!!!");
			e1.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return fileName + ", 单词数为：" + count;
	}
	
    public String getl(String fileName) {
		int count = 0;
		String s;
		try {
			BufferedReader in = new BufferedReader(new FileReader(fileName));
			while ((s = in.readLine()) != null)
				++count;
			in.close();
		} catch (FileNotFoundException e1) {
			System.out.println("找不到文件!!!");
			e1.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return fileName + ", 总的行数为：" + count;
	}
    
    // 返回具体的代码行数，注释行数和空的行数
	public String geta(String fileName) {
		int count = 0, space = 0, h = 0;
		String s;
		try {
			BufferedReader in = new BufferedReader(new FileReader(fileName));
			while ((s = in.readLine()) != null) {
				if (s.isEmpty() || s.trim().length() <= 1)
					++space;
				else {
					int t = 0;
					while (t < s.length() && s.charAt(t) == ' ')
						++t;
					if ((t + 1 < s.length() && s.charAt(t) == '/' && s.charAt(t + 1) == '/')
							|| (t + 2 < s.length() && s.charAt(t + 1) == '/' && s.charAt(t + 2) == '/'))
						++h;
					else
						++count;
				}
			}
			in.close();
		} catch (FileNotFoundException e1) {
			System.out.println("找不到文件!!!");
			e1.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return fileName + ", 代码行/空行/注释行:" + count + "/" + space + "/" + h;
	}

	// 将结果写入指定的文件中
	public void writeFile(String fileName) {
		try {
			FileWriter w = new FileWriter(fileName);
			int i = 0;
			for (; i < arrayList.size(); i++) {
				w.write(arrayList.get(i));
				w.write("\r\n");
			}
			w.close();
		} catch (IOException e) {
			System.out.println("文件写入错误");
			e.printStackTrace();
		}
	}

}
